package com.jingdianjichi.subject.domin.service;

import com.jingdianjichi.subject.domin.entity.SubjectCategoryBO;

import javax.security.auth.Subject;
import java.util.List;

/**
 * @author 86156
 * @version 1.0
 * @date 2024-10-02 10:54
 */
public interface SubjectCategoryDomainService {

    void add(SubjectCategoryBO subjectCategoryBO);

    /**
     * 查询大类
     * @return
     */
    List<SubjectCategoryBO> queryPrimaryCategory();

    /**
     * 根据分类Id查询分类子类
     * @return
     */
    List<SubjectCategoryBO> queryCategory(SubjectCategoryBO subjectCategoryBO);

    /**
     * 更新分类
     * @param subjectCategoryBO
     * @return
     */
    Boolean update(SubjectCategoryBO subjectCategoryBO);

    /**
     * 删除分类
     * @param subjectCategoryBO
     * @return
     */
    Boolean delete(SubjectCategoryBO subjectCategoryBO);

    /**
     * 根据分类id一次性查询标签集合
     * @param subjectCategoryBO
     * @return
     */
    List<SubjectCategoryBO> queryCategoryAndLabel(SubjectCategoryBO subjectCategoryBO);
}
